package com.secsbrain.development.dal.model;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotations.IdType;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

@TableName(value = "pm_branch_action_record")
public class BranchActionRecord implements Serializable {

	@TableField(exist = false)
	private static final long serialVersionUID = 1L;
    
	@TableField(exist = false)
    private String projectName;//工程名
    
	@TableField(exist = false)
    private String branchTypeName;//分支类型名称
    
	@TableField(exist = false)
    private String relateBranchTypeName;
    
	@TableField(exist = false)
    private String formatTime;

	@TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 工程ID
     */
    @TableField(value = "project_id")
    private Long projectId;
    
    /**
     * 分支名称，如develop_20170926
     */
    @TableField(value = "branch_name")
    private String branchName;

    /**
     * 分支类型id
     */
    @TableField(value = "branch_type_id")
    private Long branchTypeId;
    

    /**
     * 1-拉取，2-合并
     */
    @TableField(value = "action_type")
    private Integer actionType;

    /**
     * 拉取或推送的分支
     */
    @TableField(value = "relate_branch")
    private String relateBranch;

    /**
     * 拉取或推送的分支类型ID
     */
    @TableField(value = "relate_branch_type")
    private Long relateBranchType;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * @return id
     */
    public Long getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取工程ID
     *
     * @return project_id - 工程ID
     */
    public Long getProjectId() {
        return projectId;
    }

    /**
     * 设置工程ID
     *
     * @param projectId 工程ID
     */
    public void setProjectId(Long projectId) {
        this.projectId = projectId;
    }

    /**
     * 获取分支名称，如develop_20170926
     *
     * @return branch_name - 分支名称，如develop_20170926
     */
    public String getBranchName() {
        return branchName;
    }

    /**
     * 设置分支名称，如develop_20170926
     *
     * @param branchName 分支名称，如develop_20170926
     */
    public void setBranchName(String branchName) {
        this.branchName = branchName == null ? null : branchName.trim();
    }

    /**
     * 获取分支类型id
     *
     * @return branch_type_id - 分支类型id
     */
    public Long getBranchTypeId() {
        return branchTypeId;
    }

    /**
     * 设置分支类型id
     *
     * @param branchTypeId 分支类型id
     */
    public void setBranchTypeId(Long branchTypeId) {
        this.branchTypeId = branchTypeId;
    }

    /**
     * 获取1-拉取，2-合并
     *
     * @return action_type - 1-拉取，2-合并
     */
    public Integer getActionType() {
        return actionType;
    }

    /**
     * 设置1-拉取，2-合并
     *
     * @param actionType 1-拉取，2-合并
     */
    public void setActionType(Integer actionType) {
        this.actionType = actionType;
    }

    /**
     * 获取拉取或推送的分支
     *
     * @return relate_branch - 拉取或推送的分支
     */
    public String getRelateBranch() {
        return relateBranch;
    }

    /**
     * 设置拉取或推送的分支
     *
     * @param relateBranch 拉取或推送的分支
     */
    public void setRelateBranch(String relateBranch) {
        this.relateBranch = relateBranch == null ? null : relateBranch.trim();
    }

    /**
     * 获取拉取或推送的分支类型ID
     *
     * @return relate_branch_type - 拉取或推送的分支类型ID
     */
    public Long getRelateBranchType() {
        return relateBranchType;
    }

    /**
     * 设置拉取或推送的分支类型ID
     *
     * @param relateBranchType 拉取或推送的分支类型ID
     */
    public void setRelateBranchType(Long relateBranchType) {
        this.relateBranchType = relateBranchType;
    }

    /**
     * 获取创建时间
     *
     * @return create_time - 创建时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 设置创建时间
     *
     * @param createTime 创建时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public String getBranchTypeName() {
        return branchTypeName;
    }

    public void setBranchTypeName(String branchTypeName) {
        this.branchTypeName = branchTypeName;
    }

    public String getRelateBranchTypeName() {
        return relateBranchTypeName;
    }

    public void setRelateBranchTypeName(String relateBranchTypeName) {
        this.relateBranchTypeName = relateBranchTypeName;
    }

    public String getFormatTime() {
        return formatTime;
    }

    public void setFormatTime(String formatTime) {
        this.formatTime = formatTime;
    }
    
}